<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head>
    <title>部门管理</title>
    <jsp:include page="../../include/head.jsp"/>
</head>
<body class="gray-bg">
<div class="wrapper">
    <div class="col-sm-12">
        <div class="ibox">
            <div class="ibox-body">
                <div class="fixed-table-toolbar">
                    <div class="columns pull-left">
                        <shiro:hasPermission name="admin:dept:add">
                            <button type="button" class="btn  btn-primary"
                                    onclick="add(0)">
                                <i class="fa fa-plus hidden" aria-hidden="true"></i>添加
                            </button>
                        </shiro:hasPermission>
                        <shiro:hasPermission name="admin:dept:batchRemove">
                            <button type="button" class="btn  btn-danger"
                                    onclick="batchRemove()">
                                <i class="fa fa-trash" aria-hidden="true"></i>删除
                            </button>
                        </shiro:hasPermission>
                    </div>
                    <div class="columns pull-right">
                        <button class="btn btn-success" onclick="reLoad()">查询</button>
                    </div>
                    <div class="columns pull-right col-md-2 nopadding">
                        <input id="searchName" type="text" class="form-control"
                               placeholder="">
                    </div>
                </div>
                <table id="exampleTable" data-mobile-responsive="true">
                </table>
            </div>
        </div>
    </div>
</div>
<div>
    <script type="text/javascript">
        var s_add_h = 'hidden';
        var s_edit_h = 'hidden';
        var s_remove_h = 'hidden';
        var s_resetPwd_h = 'hidden';
        <shiro:hasPermission name="admin:dept:edit">
        s_edit_h = '';
        </shiro:hasPermission>
        <shiro:hasPermission name="admin:dept:remove">
        s_remove_h = '';
        </shiro:hasPermission>
        <shiro:hasPermission name="admin:dept:add">
        s_add_h = '';
        </shiro:hasPermission>
    </script>
</div>
<jsp:include page="../../include/footer.jsp"/>
<script type="text/javascript" src="app/resources/js/appjs/admin/dept/dept.js"></script>
</body>
</html>